Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🪟 🐛 Fix job failures not showing when discover schema fails while creating a connection #15624

Merged
merged 3 commits into from
Aug 17, 2022

Conversation

edmundito
Copy link
Contributor

What

Fixes #9056

Shows the failure log when discovering the schema fails while creating a new connection.
Additionally removes a "0" from showing up when there is only one failed job attempt.

Screen Shot 2022-08-12 at 15 24 30

Related to changes in #11524 and #12071

How

  • Ensures that the error set when /discover_schema fails is a LogsRequestError, which is what the component checks to render the log.
  • Removes SynchronousJobReadWithStatus introduced in Generated API Client #12071. When switching to the generated API some of the custom status injection was lost. Now the Job status is determined based on the .succeeded property.

Recommended reading order

  1. airbyte-webapp/src/core/domain/connector/SourceService.ts
  2. airbyte-webapp/src/components/JobItem/JobItem.tsx
  3. Rest of code

Tests

This area impacts logs both on the connection status page and on the connection create and replication view settings. Tested both!

@edmundito edmundito added type/bug Something isn't working area/frontend area/frontend Related to the Airbyte webapp labels Aug 12, 2022
@edmundito edmundito requested a review from a team as a code owner August 12, 2022 19:43
@github-actions github-actions bot added the area/platform issues related to the platform label Aug 12, 2022
Copy link
Contributor

@krishnaglick krishnaglick left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Glad to see this code revisited! LGTM, saw error locally 👍

@edmundito edmundito force-pushed the edmundito/fix-discover-schema-job-fail branch from 9e815b5 to 4964eac Compare August 16, 2022 14:03
@edmundito edmundito merged commit 2190383 into master Aug 17, 2022
@edmundito edmundito deleted the edmundito/fix-discover-schema-job-fail branch August 17, 2022 14:23
rodireich pushed a commit that referenced this pull request Aug 25, 2022
…ating a connection (#15624)

* Fix status check on `JobItem` and ensure that `SourceService` returns `LogsRequestError` when there are logs.

* Remove `SynchronousJobReadWithStatus` interface, no longer needed.

* Fix conditional check in JobItem/MainInfo to prevent it from rendering 0 when there are no attempts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/frontend Related to the Airbyte webapp area/platform issues related to the platform type/bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Missing logs in the UI on the schema fetch step
2 participants